/*
 * @Description: 事件格式化
 * @Author: zheng yiliang
 * @Date: 2021-04-24 09:44:51
 * @LastEditTime: 2021-05-06 21:48:54
 * @LastEditors: zheng yiliang
 */
/**
 * @author zhengyiliang
 * 日期相关工具
 * */
import dayjs from 'dayjs'
import advancedFormat from 'dayjs/plugin/advancedFormat'
dayjs.extend(advancedFormat)
const dateUtil = {}
dateUtil.dayjs = dayjs

dateUtil.getDate = function (date, value = "YYYY-MM-DD HH:mm:ss") {
  return dayjs(date).format(value)
};


export default dateUtil
